﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ContactForm.ascx.cs" Inherits="UserControls_ContactForm" %>

<asp:MultiView ID="MultiView1" runat="server">
    <asp:View ID="View1" runat="server">
        <h4>Skriv til os</h4>
            <div>
                <asp:Label ID="Label1" runat="server" Text="Navn" Font-Bold="true"></asp:Label>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="NameTextBox" runat="server"
                    ErrorMessage="*">   </asp:RequiredFieldValidator>
                <asp:TextBox ID="NameTextBox" ToolTip="Skriv gerne dit fulde navn" runat="server" Width="60%"></asp:TextBox>

            </div>
            <div>
                <asp:Label ID="Label2" runat="server" Text="E-mail" Font-Bold="true"></asp:Label>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" ControlToValidate="EmailTextBox" runat="server"
                    ErrorMessage="*"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="EmailRegex" runat="server" ControlToValidate="EmailTextBox" ErrorMessage="Ugyldig E-mail"
                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                <asp:TextBox ID="EmailTextBox" ToolTip="Du vil blive besvaret på denne mail" runat="server" Width="60%"></asp:TextBox>
            </div>
            <div>
                <asp:Label ID="Label3" runat="server" Text="Emne" Font-Bold="true"></asp:Label>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" ControlToValidate="SubjectTextBox" runat="server"
                    ErrorMessage="*"></asp:RequiredFieldValidator>
                <asp:TextBox ID="SubjectTextBox" runat="server" Width="60%"></asp:TextBox>
            </div>

            <div>
                <asp:Label ID="Label4" runat="server" Text="Besked" Font-Bold="true"></asp:Label>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" ControlToValidate="MessageTextBox" runat="server"
                    ErrorMessage="*"></asp:RequiredFieldValidator>
                <asp:TextBox ID="MessageTextBox" runat="server" TextMode="MultiLine" Width="60%" Height="150px"></asp:TextBox>
            </div>

            <div>
                <asp:Button ID="Button1" runat="server" Text="Send" OnClick="Button1_Click" />
            </div>
    </asp:View>
    <asp:View ID="View2" runat="server">

        <asp:Panel HorizontalAlign="Center" runat="server">
            <h4>
                <asp:Label ID="Label5" runat="server" Text="Tak for din mail, vi vender tilbage hurtigst muligt." Font-Bold="true"></asp:Label></h4>
            <div class="topspace"></div>
            <asp:Image ID="GreenCheck" runat="server" Height="152px" ImageUrl="~/images/Yes_check.svg.png" Width="175px" />
        </asp:Panel>
    </asp:View>
    <asp:View ID="View3" runat="server">
        <asp:Panel ID="Panel1" HorizontalAlign="Center" runat="server">
            <h4>
                <asp:Label ID="Label6" runat="server" Text="Noget gik galt!" Font-Bold="true"></asp:Label></h4>
            <div class="topspace"></div>
            <asp:Image ID="Image1" runat="server" Height="160px" ImageUrl="~/images/icon-error.png" Width="163px" />
            <div class="topspace"></div>
            <asp:Label ID="Label7" runat="server" Text="Send venligst en email til info@analyseinvestor.dk og nedenstående fejlkode."></asp:Label>
            <br />
            <asp:Label ID="ErrorLabel" runat="server" Text=""></asp:Label>
        </asp:Panel>
    </asp:View>
</asp:MultiView>


